<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.min.js"></script>
	</head>
	<body>
		<div class="">
			
		</div>
		<div id="">
			
		</div>
	</body>
	<script>
		// jquery 提供 Ajax，参数是一个js对象{}
		$.ajax({
			type:"POST",
			// url:"https://cd.jd.com/qrcode",
			// data:{				
			// 	"skuId":"12780843"
			// },
			// url:"https://p.3.cn/prices/mgets",
			// url:"https://p.3.cn/prices/mgets?skuIds=J_11280998%2CJ_12382748%2CJ_12089316%2CJ_12362365%2CJ_12016895%2CJ_12192189",
			// url:"https://cds.3.cn/hotwords/get?cate=1713%2C3261%2C3354",
			// url:"https://club.jd.com/comment/productCommentSummaries.action?referenceIds=62628247772,24273426061,18712822283,20390941804,66021801542,33538124561,14680219795,54876748507,18606380943,70423096892,10022140058592,59288513200,70628170835,70023062850,30229832668,65822447090,18445682050,10024678129855,10021435698877,18622127475,70422511545,70410647799,62382024501,18621721864,72054442685,71533698709,70572194908,67654088555,30627174832,20661562355,69250217584,62186752242,69761605215,18443210671",
			url:"https://p.3.cn/prices/mgets?skuIds=J_62628247772%2CJ_24273426061%2CJ_18712822283%2CJ_20390941804%2CJ_66021801542%2CJ_33538124561%2CJ_14680219795%2CJ_54876748507%2CJ_18606380943%2CJ_70423096892%2CJ_10022140058592%2CJ_59288513200%2CJ_70628170835%2CJ_70023062850%2CJ_30229832668%2CJ_65822447090%2CJ_18445682050%2CJ_10024678129855%2CJ_10021435698877%2CJ_18622127475%2CJ_70422511545%2CJ_70410647799%2CJ_62382024501%2CJ_18621721864%2CJ_72054442685%2CJ_71533698709%2CJ_70572194908%2CJ_67654088555%2CJ_30627174832%2CJ_20661562355%2CJ_69250217584%2CJ_62186752242%2CJ_69761605215%2CJ_18443210671",
			// data:{
			// 	"keyword":"曾国藩",
			// },
			contentType:"application/json;charset=utf-8",
			dataType:"jsonp",
			success:function(data){
				console.log("访问成功");
				console.log(data);
				for (var i = 0; i < data.length; i++) {
					var d = data[i];
					console.log("ID："+d.id+"\t价格："+d.p);
				}
				try{
					
				}catch(e){
					//TODO handle the exception
				}
			},
			error:function(e){
				console.log("访问失败")
			}
		})
	</script>
</html>
